<template>
	<view v-if="state=='shopp'">
		<view class="parFor">
			<view>总价</view>
			<view>
				<text>￥</text>
				<text>{{payFor.total_money}}</text>
			</view>
		</view>
		<view class="parFor">
			<view>优惠</view>
			<view>
				<text>￥</text>
				<text>{{payFor.yh_money?payFor.yh_money:0}}</text>
			</view>
		</view>
		<view class="parFor">
			<view>{{payFor.status=='1'?'实付款':'应付款'}}</view>
			<view>
				<text style="color:#FF0000">￥</text>
				<text style="color:#FF0000;font-size: 36rpx;">{{payFor.status=='1'?payFor.pay_fee:payFor.money}}</text>
			</view>
		</view>
	</view>
	<view v-if="state=='sureOrder'">
		<view class="parFor">
			<view>商品总价</view>
			<view>
				<text>￥</text>
				<text>{{payFor.total_money}}</text>
			</view>
		</view>
		<view class="parFor">
			<view>商品优惠</view>
			<view>
				<text>￥</text>
				<text>{{payFor.yh_money?payFor.yh_money:0}}</text>
			</view>
		</view>
		<view class="parFor">
			<view>应付款</view>
			<view>
				<text style="color:#FF0000">￥</text>
				<text style="color:#FF0000;font-size: 36rpx;">{{payFor.money}}</text>
			</view>
		</view>
	</view>
	<view v-if="state=='groupDetail'">
		<view class="parFor">
			<view>总价</view>
			<view>
				<text>￥</text>
				<text>{{payFor.total_money}}</text>
			</view>
		</view>
		<view class="parFor">
			<view>平台补贴</view>
			<view>
				<text>￥</text>
				<text>{{payFor.yh_money?payFor.yh_money:0}}</text>
			</view>
		</view>
		<view class="parFor">
			<view>团惠价</view>
			<view>
				<text style="color:#FF0000">￥</text>
				<text style="color:#FF0000;font-size: 36rpx;">{{payFor.money}}</text>
			</view>
		</view>
	</view>
	<view class="parFor"  v-if="state=='myOrder'" style="padding: 5rpx 0px;">
		<view>消耗积分</view>
		<view>
			<text style="font-size: 40rpx;">{{payFor.score}}</text>
			<text  style="font-size: 24rpx;">积分</text>
		</view>
	</view>
</template>

<script setup lang="ts">
	const props = defineProps({
	  empty:{ type: Boolean },
	  state:{ type: String },
	  group:{ type: Boolean },
	  payFor:{ type: Object },
	  actual:{ type: Boolean },
	});
</script>

<style scoped lang="less">
	@import url('../groupBenefits/less/pay.less');
</style>